package com.powergisol.gis.controller;
import	java.util.Calendar;


import com.powergisol.gis.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;


@RestController
@RequestMapping(value = "virtual")
public class VirtualDrillController {


    @RequestMapping(value = "drill", method = RequestMethod.POST)
    public Result drill(){
        return null;
    }

    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        String date = sdf.format(new Date());
        System.out.println(date);

        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        cal.add(Calendar.DATE,-1);
        Date d = cal.getTime();
        date = sdf.format(d);
        System.out.println(date);
    }
}
